<?php if (!defined('THINK_PATH')) exit();?><!-- public:header 以下内容 -->
<!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<title>网站后台管理中心- Powered by 74cms.com</title>
	<link rel="shortcut icon" href="<?php echo C('qscms_site_dir');?>favicon.ico"/>
	<meta name="author" content="骑士CMS" />
	<meta name="copyright" content="74cms.com" />
	<!-- <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">  -->
	<link href="__ADMINPUBLIC__/css/common.css?v=<?php echo strtotime('today');?>" rel="stylesheet" type="text/css">
	<script src="__ADMINPUBLIC__/js/jquery.min.js"></script>
	<script src="__ADMINPUBLIC__/js/jquery.highlight-3.js"></script>
	<script src="__ADMINPUBLIC__/js/jquery.vtip-min.js"></script>
	<script src="__ADMINPUBLIC__/js/jquery.modal.dialog.js"></script>
	<script type="text/javascript" src="__ADMINPUBLIC__/js/laydate/laydate.js"></script>
	<!--[if lt IE 9]>
	<script type="text/javascript" src="__ADMINPUBLIC__/js/PIE.js"></script>
	<script type="text/javascript">
		(function ($) {
			$.pie = function (name, v) {
				// 如果没有加载 PIE 则直接终止
				if (!PIE) return false;
				// 是否 jQuery 对象或者选择器名称
				var obj = typeof name == 'object' ? name : $(name);
				// 指定运行插件的 IE 浏览器版本
				var version = 9;
				// 未指定则默认使用 ie10 以下全兼容模式
				if (typeof v != 'number' && v < 9) {
					version = v;
				}
				// 可对指定的多个 jQuery 对象进行样式兼容
				if ($.browser.msie && obj.size() > 0) {
					if ($.browser.version * 1 <= version * 1) {
						obj.each(function () {
							PIE.attach(this);
						});
					}
				}
			}
		})(jQuery);
		if ($.browser.msie) {
			$.pie('.pie_about');
		};
	</script>
	<![endif]-->
	<script src="__ADMINPUBLIC__/js/jquery.disappear.tooltip.js"></script>
	<script src="__ADMINPUBLIC__/js/common.js"></script>
	<script>
		var URL = '/index.php/admin/set_com',
			SELF = '/index.php?m=admin&amp;c=set_com&amp;a=set_meal',
			ROOT_PATH = '/index.php/admin',
			APP	 =	 '/index.php';

		var qscms = {
			district_level : "<?php echo C('qscms_category_district_level');?>",
			default_district : "<?php echo C('qscms_default_district');?>"
		};
	</script>
	<?php echo ($synsitegroupunbindmobile); ?>
	<?php echo ($synsitegroupregister); ?>
	<?php echo ($synsitegroupedit); ?>
	<?php echo ($synsitegroup); ?>
</head>
<body>

<!-- public:header 以上内容 -->
<?php if(empty($menu_title)): ?><div class="allpagetop">后台管理中心<strong>/</strong>首页</div>
	<?php else: ?>
	<div class="allpagetop"><?php echo ($menu_title); ?><strong>/</strong><?php echo ($sub_menu_title); ?></div><?php endif; ?>
<div class="mains">
	<div class="h1tit">
		<div class="h1">
            <?php if($sub_menu['pageheader']): echo ($sub_menu["pageheader"]); ?>
                <?php else: ?>
                <!--欢迎登录 <?php echo C('qscms_site_name');?> 管理中心！--><?php endif; ?>
        </div>
        <?php if(!empty($sub_menu['menu'])): ?><div class="topnav">
                <?php if(is_array($sub_menu['menu'])): $i = 0; $__LIST__ = $sub_menu['menu'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?><a href="<?php echo U($val['module_name'].'/'.$val['controller_name'].'/'.$val['action_name']); echo ($val["data"]); if($isget and $_GET): echo get_first(); endif; if($_GET['_k_v']): ?>&_k_v=<?php echo (_I($_GET['_k_v'])); endif; ?>" class="<?php echo ($val["class"]); ?>"><?php echo ($val["name"]); ?></a><?php endforeach; endif; else: echo "" ;endif; ?>
                <div class="clear"></div>
            </div><?php endif; ?>
		<div class="clear"></div>
	</div>
<div class="toptip">
    <div class="toptit">提示：</div>
    <p>不同的运营阶段您可以选择不同的设置。</p>
</div>
<div class="toptit">会员默认套餐设置</div>
<form id="form1" action="<?php echo U('set_meal');?>" method="post">
    <div class="form_main width250">
        <div class="fl">新注册会员赠送服务:</div>
        <div class="fr">
            <div class="imgradio">
                <input name="reg_service" type="hidden" value="<?php echo C('qscms_reg_service');?>">
                <?php if(is_array($setmeal_show)): $i = 0; $__LIST__ = $setmeal_show;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class="radio <?php if((C("qscms_reg_service")) == $vo["id"]): ?>select<?php endif; ?>" data="<?php echo ($vo["id"]); ?>" title="<?php echo ($vo['setmeal_name']); ?>"><?php echo ($vo['setmeal_name']); ?></div><?php endforeach; endif; else: echo "" ;endif; ?>
                <div class="clear"></div>
            </div>
        </div>
        <div class="fl">重新开通服务时叠加服务项目:</div>
        <div class="fr">
            <div data-code="0,1" class="imgchecked_small <?php if((C("qscms_is_superposition")) == "1"): ?>select<?php endif; ?>"><input name="is_superposition" type="hidden" value="<?php echo C('qscms_is_superposition');?>" /></div>
            <div class="clear"></div>
        </div>
        <div class="fl">重新开通服务时叠加服务时间:</div>
        <div class="fr">
            <div data-code="0,1" class="imgchecked_small <?php if((C("qscms_is_superposition_time")) == "1"): ?>select<?php endif; ?>"><input name="is_superposition_time" type="hidden" value="<?php echo C('qscms_is_superposition_time');?>" /></div>
            <div class="clear"></div>
        </div>
        <div class="fl">重新开通保留超出限额的在招职位:</div>
        <div class="fr">
            <div data-code="0,1" class="imgchecked_small <?php if((C("qscms_hold_beyond_jobs")) == "1"): ?>select<?php endif; ?>"><input name="hold_beyond_jobs" type="hidden" value="<?php echo C('qscms_hold_beyond_jobs');?>" /></div>
            <div class="clear"></div>
        </div>
        <div class="fl">套餐到期提前几天提醒:</div>
        <div class="fr">
            <input name="meal_min_remind" type="text" class="input_text_default small" maxlength="30" value="<?php echo C('qscms_meal_min_remind');?>" onkeyup="if(event.keyCode !=37 && event.keyCode != 39) value=value.replace(/\D/g,'');" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))"/>
            <span class="no-fl-note">(提醒方式为进入会员中心后弹窗提醒套餐即将到期，0为不提醒)</span>
        </div>
        <!-- <div class="fl">购买套餐允许使用积分抵现:</div> -->
        <!-- <div class="fr"> -->
            <!-- <div data-code="0,1" class="imgchecked_small <?php if((C("qscms_setmeal_by_points")) == "1"): ?>select<?php endif; ?>"><input name="setmeal_by_points" type="hidden" value="<?php echo C('qscms_setmeal_by_points');?>" /></div> -->
            <!-- <div class="clear"></div> -->
        <!-- </div> -->
        <div class="fl"></div>
        <div class="fr">
            <input type="button" class="admin_submit" value="保存修改" id="J_submit"/>
            <input type="button" class="admin_submit" value="返回" onClick="history.go(-1)"/>
        </div>
        <div class="clear"></div>
    </div>
</form>
<div class="toptit">简历下载点数配置<span class="note" style="color:rgb(255, 0, 0)">根据被下载简历刷新时间，配置企业下载简历扣除点数</span></div>
<form id="form2" action="<?php echo U('set_meal');?>" method="post">
    <div class="form_main width200">
        <div class="fl">刷新时间一天之内:</div>
        <div class="fr">
            <input name="resume_download_points_conf[1]" type="text" class="input_text_default small" maxlength="10" value="<?php echo C('qscms_resume_download_points_conf.1');?>" onkeyup="if(event.keyCode !=37 && event.keyCode != 39) value=value.replace(/\D/g,'');" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))"/> 点
        </div>
        <div class="fl">刷新时间三天之内:</div>
        <div class="fr">
            <input name="resume_download_points_conf[3]" type="text" class="input_text_default small" maxlength="10" value="<?php echo C('qscms_resume_download_points_conf.3');?>" onkeyup="if(event.keyCode !=37 && event.keyCode != 39) value=value.replace(/\D/g,'');" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))"/> 点
        </div>
        <div class="fl">刷新时间五天之内:</div>
        <div class="fr">
            <input name="resume_download_points_conf[5]" type="text" class="input_text_default small" maxlength="10" value="<?php echo C('qscms_resume_download_points_conf.5');?>" onkeyup="if(event.keyCode !=37 && event.keyCode != 39) value=value.replace(/\D/g,'');" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))"/> 点
        </div>
        <div class="fl">刷新时间五天以上:</div>
        <div class="fr">
            <input name="resume_download_points_conf[0]" type="text" class="input_text_default small" maxlength="10" value="<?php echo C('qscms_resume_download_points_conf.0');?>" onkeyup="if(event.keyCode !=37 && event.keyCode != 39) value=value.replace(/\D/g,'');" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))"/> 点
        </div>
        <div class="fl"></div>
        <div class="fr">
            <input type="button" class="admin_submit" value="保存修改" id="J_submit1"/>
            <input type="button" class="admin_submit" value="返回" onClick="history.go(-1)"/>
        </div>
        <div class="clear"></div>
    </div>
</form>
<div class="toptit">服务套餐列表</div>
<div class="list_th">
    <div class="td" style=" width:10%;">
        <div class="left_padding">显示</div>
    </div>
    <div class="td" style=" width:30%;">名称</div>
    <div class="td center" style=" width:10%;">会员申请</div>
    <div class="td center" style=" width:15%;">服务价</div>
    <div class="td center" style=" width:15%;">期限</div>
    <div class="td center" style=" width:10%;">排序</div>
    <div class="td" style=" width:10%;">操作</div>
    <div class="clear"></div>
</div>

<?php if(is_array($setmeal)): $i = 0; $__LIST__ = $setmeal;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class="list_tr link_black">
        <div class="td" style=" width:10%;">
            <div class="left_padding striking">
                <?php if($vo['display'] == 1): ?>显示<?php else: ?><span style="color: #999999">屏蔽</span></else><?php endif; ?>
            </div>
        </div>
        <div class="td" style=" width:30%;">
            <?php echo ($vo['setmeal_name']); ?><span style="color:#999999">(id:<?php echo ($vo["id"]); ?>)</span>
        </div>
        <div class="td center" style=" width:10%;">
            <?php if($vo['apply'] == 1): ?>允许<?php else: ?><span style="color: #999999">不允许</span><?php endif; ?>
        </div>
        <div class="td center" style=" width: 15%;">
            <?php if($vo['expense'] == 0): ?>免费<?php else: ?>￥<strong><?php echo ($vo["expense"]); ?></strong>元<?php endif; ?>
        </div>
        <div class="td center" style=" width:15%;">
            <?php if($vo['days'] == 0): ?>不限制<?php else: echo ($vo["days"]); ?>天<?php endif; ?>
        </div>
        <div class="td center" style=" width:10%;"><?php echo ($vo["show_order"]); ?></div>
        <div class="td edit" style=" width:10%;">
            <a href="<?php echo U('Setmeal/edit',array('id'=>$vo['id']));?>">设置</a>
            <?php if($vo['is_free'] != 1): ?><a href="<?php echo U('Setmeal/delete',array('id'=>$vo['id']));?>" onclick="return confirm('你确定要删除吗？')" class="gray">删除</a><?php endif; ?>
        </div>
        <div class="clear"></div>
    </div><?php endforeach; endif; else: echo "" ;endif; ?>
<?php if(empty($setmeal)): ?><div class="list_empty">没有任何信息！</div><?php endif; ?>
<div class="list_foot">
    <div class="btnbox">
        <input type="button" class="admin_submit" id="ButAdd" value="新增套餐" onclick="window.location.href='<?php echo U('Setmeal/add');?>'"/>
    </div>
    <div class="footso"></div>
</div>

</div>
<!-- public:footer 以下内容 -->
<div class="footer link_blue">
    Powered by <a href="https://www.74cms.com" target="_blank"><span style="color:#009900">74</span><span
        style="color: #FF3300">cms</span></a> v<?php echo C('QSCMS_VERSION');?>
</div>
<div class="layui-floatmenu">
    <div class="J_suggest item" data-url="<?php echo U('Suggest/add');?>"></div>
    <div class="J_suggestList list item" data-url="<?php echo U('Suggest/index');?>">
      <?php if($suggest): ?><span></span><?php endif; ?>
    </div>
  </div>
<script src="__ADMINPUBLIC__/js/layui.js"></script>
<!-- public:footer 以上内容 -->
<script>
  layui.use(['form', 'element'], function(){
  var element = layui.element;
  var form = layui.form;
  var layer = layui.layer;
  var $ = layui.jquery;
  var loading = layer.load(0, {shade: [0.3,'#fff'],time:500});
  $('.J_suggest').click(function(){
    var url = $(this).data('url');
    $.getJSON(url,function(result){
      layer.open({
          title:'反馈',
          type: 1,
          area: ['800px', 'auto'], //宽高
          content: result.data
      });
    });
  });
  $('.J_suggestList').click(function(){
    var url = $(this).data('url');
    var f = $(this).find('span');
    $.getJSON(url,function(result){
      layer.open({
          title:'历史反馈记录',
          type: 1,
          area: ['800px', '690px'], //宽高
          content: result.data
      });
      f.remove();
    });
  });
});
</script>
</body>
<script type="text/javascript">
    $(document).ready(function () {
        $('#J_submit').click(function(){
            var that = $(this);
            if(that.hasClass('disabled')){
                return false;
            }
            that.val('正在保存...').addClass('disabled');
            $.post("<?php echo U('set_meal');?>",$('#form1').serialize(),function(result){
                if(result.status==1){
                    disapperTooltip("success", result.msg,function(){
                        location.reload();
                    });
                }else{
                    disapperTooltip("remind", result.msg,function(){
                        that.val('保存').removeClass('disabled');
                    });
                    return false;
                }
            },'json');
        });
        $('#J_submit1').click(function(){
            var that = $(this);
            if(that.hasClass('disabled')){
                return false;
            }
            that.val('正在保存...').addClass('disabled');
            $.post("<?php echo U('set_meal');?>",$('#form2').serialize(),function(result){
                if(result.status==1){
                    disapperTooltip("success", result.msg,function(){
                        location.reload();
                    });
                }else{
                    disapperTooltip("remind", result.msg,function(){
                        that.val('保存').removeClass('disabled');
                    });
                    return false;
                }
            },'json');
        });
    });
</script>
</html>